package com.kdd.campus.sh.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Auther: fcp
 * @Date: 2020/4/29 21:14
 * @Description:
 */
@ApiModel(description = "OrderDto",value = "OrderDto")
@Data
public class OrderDto {
    // ============用户信息==========
//    @NotNull
//    private Long userId;

    @NotEmpty
    private String username;//用户名

    @NotEmpty
    private String phone;//电话号码

    // ============地址信息==========
    @ApiModelProperty(value = "大学名称")
    @NotEmpty
    private String receiverUniversity;  

    @ApiModelProperty(value = "校区")
    @NotEmpty
    private String receiverCampus;//

    @ApiModelProperty(value = "宿舍楼")
    private String receiverDormitory;//

    @ApiModelProperty(value = "房间")
    private String receiverRoom;//

    private String receiverProvince;

    private String receiverCity;

    private String receiverArea;

    @ApiModelProperty(value = "备注")
    private String receiverComment;//

    // 订单项信息
    private List<OrderItemDto> orderItemDtoList;
}
